<?php

  require_once "JooS/PHPackager/FS/Action/Abstract.php";
  
  /**
   * @property JooS_PHPackager_File_Adapter_Tmp $tmpFile
   * @property string $realPath
   */
  class JooS_PHPackager_FS_Action_CopyTmp extends JooS_PHPackager_FS_Action_Abstract {
    public function __invoke() {
      copy($this->tmpFile->get_name(), $this->realPath);
      unset($this->tmpFile);
    }

    /**
     * @return JooS_PHPackager_FS_Action_CopyTmp
     */
    public static function newInstance() {
      return new self();
    }
  }
